#include<stdio.h>
#include<unistd.h>
int main()
{

	while(1)
	{
		printf("getpid:%d\n",getpid());
		printf("getppid:%d\n",getppid());
		printf("这是一个进程\n");
		sleep(1);
	}
	return 0;
}
